import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class brandweerman here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class brandweerman extends Actor
{
    public brandweerman(){
        GreenfootImage image = getImage();
        image.scale(image.getWidth() - 150, image.getHeight() - 75);
        setImage(image);
    }
    public void act() 
    {
        move(-3);

        {    
            if (atWorldEdge() == true)    
            {    
                getWorld().removeObject(this);    
            }    
        }      
    }

    public boolean atWorldEdge()    
    {   
        if (getX() == 0 ) {  
            return true;  
        } else {  
            return false;  
        }  
    }  
    
}    

